package cloud.maque.auth.exceptions;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class UserInfoException extends RuntimeException {

    private final int code;
    private final String message;

    public UserInfoException() {
        this(500, "用户异常");
    }

    public UserInfoException(String message) {
        this(500, message);
    }

    public UserInfoException(int code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }
}
